//
//  AXFSelectCellHeadView.m
//  AIXF
//
//  Created by Macx on 2017/7/10.
//  Copyright © 2017年 Macx. All rights reserved.
//

#import "AXFSelectCellHeadView.h"
#import <UIImageView+WebCache.h>
@interface AXFSelectCellHeadView ()
@property (weak, nonatomic) IBOutlet UIImageView *goodImageView;
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UILabel *priceLabel;
@property (weak, nonatomic) IBOutlet UILabel *maketPriceLabel;
@property (weak, nonatomic) IBOutlet UILabel *pmdescLabel;

@property (weak, nonatomic) IBOutlet UILabel *brandNameLabel;
@property (weak, nonatomic) IBOutlet UILabel *specificsLabel;

@end
@implementation AXFSelectCellHeadView

- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame])
    {
    
        self = [[NSBundle mainBundle] loadNibNamed:@"AXFSelectCellHeadView" owner:nil options:nil].lastObject;
    }
    return self;
}


- (void)setModel:(AXFHomeFirstSellModel *)model
{
    _model = model;
    
    [self.goodImageView sd_setImageWithURL:[NSURL URLWithString:model.img]];
    
    self.nameLabel.text = model.name;
    self.priceLabel.text = model.price;
    self.maketPriceLabel.text = model.market_price;
    self.pmdescLabel.text = model.pm_desc;
    self.brandNameLabel.text = model.brand_name;
    self.specificsLabel.text = model.specifics;

}


@end
